package com.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: springcloud_day1
 * @Package: com.springcloud.controller
 * @ClassName: ConfigClientController
 * @Author: 郑涛
 * @Description:
 * @Date: 2020/10/27 9:57
 * @Version: 1.0
 */
@RestController
public class ConfigClientController {

    @Value("${spring.application.name}")
    private String applicationNmae;
    @Value("${eureka.client.service-url.defaultZone}")
    private String eurekaServer;
    @Value("${server.port}")
    private String port;


    @RequestMapping("/config")
    public String config(){
        return "applicationNmae"+applicationNmae+"---------"+"eurekaServer"+eurekaServer+"=========="+"port"+port;
    }
}
